<?php

namespace common\model\sell66;

use common\db\Sell66;

class PriceRule extends Sell66 {
	protected $table = 'price_rule';
	public static function getRuleByPrice($price,$appId=730) {
		$rule = static::where(["app_id"=>$appId])->where( 'min_price', '<=', $price )->where ( 'max_price', '>', $price )->find ();
		return $rule;
	}
}

?>